package com.changgou.goods.service;


import com.changgou.goods.pojo.Brand;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @author BAO
 * @version V1.0
 * @Package com.changgou.goods.service
 * @date 2020/12/6 22:24
 * @description: 品牌
 */
public interface BrandService {
    List<Brand> findAll();

    Brand findById(Integer brandId);

    int save(Brand brand);

    int update(Brand brand);

    int deleteById(Integer brandId);

    List<Brand> findCondition(Map<String ,Object> searchMap);

     Page<Brand> findByPage(int currentPage,int size);

    Page<Brand> findByPageAndCondition(Map<String,Object> searchMap,int currentPage,int size);

    List<Map> findListByCategoryName(String categoryName);


}
